<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simpla Admin</title>
<include file="Admin:Resources" />

<script>
$(document).ready(function(){
	new buildPicDialog('.toBig',{'width':'600'});
});
</script>



</head>
<body>
	<div id="body-wrapper"> 
		<div id="main-content"> 
			


			<div class="content-box">
				
				<div class="content-box-header">
					
					<h3>修改表信息</h3>
					
					<ul id="my_tab">
						<li><a href="__APP__/Model/table_list" >模型列表</a></li>
								
					</ul>
					<div class="clear"></div>
				</div> 
			
			
			<div class="content-box-content" >
				
				<form action="__APP__/Model/table_editok" method="POST" >
					<table>
						<tr>
							<td>表名称</td>
							<td><input class="singletext" type="text" name="table_name" value="{$tableInfo['table_name']}" /></td>
						</tr>
						
						<tr>
							<td>描述</td>
							<td><input class="singletext" type="text" name="description" value="{$tableInfo['description']}" /></td>
						</tr>
						
						<tr>
							<td>层级关系</td>
							<td>
							<select class="selectArea" name="pid">
							
								<option value="0" >---顶层关系---</option>
								<?php foreach($select_data as $table_row){ ?>
								
								<option value="{$table_row['table_id']}" <?php if($table_row['table_id']==$tableInfo['pid']){ echo 'selected="true"'; } ?>  >
								<?php
									echo str_repeat('|----',($table_row['deep']-1));
									
								?>
								
								{$table_row['table_name']}
								</option>
								
								<?php } ?>
							</select>
							</td>
						</tr>
						<input type="hidden" name="table_id" value="{$tableInfo['table_id']}"  />
						<tr>
							<td>操作</td>
							<td><input class="button" type="submit"  value="提交" /></td>
						</tr>
					</table>
				</form>
			</div>
				
				
			</div>
			
			<div class="clear"></div>
			
			
			
		</div> 

	</div>
	
</body>
</html>
